import Admin from "./components/Admin"
import Login from "./components/Login"
import GoodList from "./route/GoodsList.vue"
import Member from './route/Member.vue'
import OrderForm from './route/OrderForm.vue'
import Pograma from './route/Pograma.vue'
import OrderDetails from "./route/OrderDetails.vue"
import OrderEdit from "./route/OrderEdit.vue"
const routes = [
    {
        path:"/",
        redirect:"admin",
        
    },
    {
        path:"/login",
        component:Login
    },
    {
        path:"/admin",
        component:Admin,
        meta:"管理界面",
        children:[
            {path:'goods-list',component:GoodList,meta:"商城管理"},
            {path:'member-list',component:Member,meta:"栏目管理"},
            {path:'pograma-list',component:Pograma,meta:"会员列表"},
            {path:'orderForm-list',component:OrderForm,meta:"订单管理"},
            {path:'orderForm-details/:ids',component:OrderDetails,meta:"订单详情"},
            {path:'order-edit/:ids',component:OrderEdit,meta:"订单编辑"},
        ]
    },
    
]

export default routes;
